/*
 * @Author       : Joel
 * @Date         : 2025-03-31 15:19:25
 * @LastEditors  : Joel
 * @LastEditTime : 2025-03-31 16:05:18
 * @FilePath     : /usr/board_driver/power_manager.h
 * @Description  : 
 * Copyright(C)2025 YiJiaLink, All Rights Reserved. 
 * 2025-03-31 15:19:25
 */
#ifndef __POWER_MANAGER_H
#define __POWER_MANAGER_H
#include<stdint.h>
#include "py32f0xx_ll_bus.h"
#include "py32f0xx_ll_cortex.h"
#include "py32f0xx_ll_dma.h"
#include "py32f0xx_ll_exti.h"
#include "py32f0xx_ll_gpio.h"
#include "py32f0xx_ll_rcc.h"
#include "py32f0xx_ll_system.h"
#include "py32f0xx_ll_tim.h"
#include "py32f0xx_ll_utils.h"

#ifdef __cplusplus
    extern "C"
{
#endif

#define BASE_POWER_TIME 200


void power_init(void);
uint8_t set_dc_enable(uint8_t flag);
uint8_t set_vcc_enable(uint8_t flag);
int get_charging_state(void);



#ifdef __cplusplus
}
#endif

#endif /* __POWER_MANAGER_H */